#ifndef __OD_H264_SDP_MATCH_GB28181_H__
#define __OD_H264_SDP_MATCH_GB28181_H__


/**
 * @file od_h264_sdp_match.h
 * @brief Special SDP format match for h264.
 */

#include <pjmedia/sdp_neg.h>

#ifdef __cplusplus
    extern "C" {
#endif

/**
 * Match H264 format in the SDP media offer and answer. This function
 * will match H264 bitrate setting in the SDP format parameter of
 * offer and answer.
 *
 * @param pool          The memory pool.
 * @param offer         The SDP media offer.
 * @param o_fmt_idx     Index of the H.264 format in the SDP media offer.
 * @param answer        The SDP media answer.
 * @param a_fmt_idx     Index of the H.264 format in the SDP media answer.
 * @param option        The format matching option, see
 *                      #pjmedia_sdp_neg_fmt_match_flag.
 *
 * @return              PJ_SUCCESS when the formats in offer and answer match.
 */
PJ_DECL(pj_status_t) od_codec_h264_match_sdp_GB28181( pj_pool_t *pool,
                                                      pjmedia_sdp_media *offer,
                                                      unsigned o_fmt_idx,
                                                      pjmedia_sdp_media *answer,
                                                      unsigned a_fmt_idx,
                                                      unsigned option);



#ifdef __cplusplus
    }
#endif

#endif	/* __OD_H264_SDP_MATCH_H__ */

/*_*/

